<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\widgets\DetailView;
use yii\widgets\Pjax;
use dmstr\bootstrap\Tabs;

/**
 * @var yii\web\View $this
 * @var yiike\company\model\TtycCompany $model
 */
$copyParams = $model->attributes;

$this->title = Yii::t('models', '统计');
$this->params['breadcrumbs'][] = '统计';
?>
<!-- flash message -->
<?php if (\Yii::$app->session->getFlash('deleteError') !== null) : ?>
    <span class="alert alert-info alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span></button>
        <?= \Yii::$app->session->getFlash('deleteError') ?>
        </span>
<?php endif; ?>
<div class="box box-info giiant-crud ttyc-company-view">
    <div class="box-header with-border">
    </div>

    <div class="box-body">


        <?php $this->beginBlock('yiike\company\model\TtycCompany'); ?>

        <div class="panel  account-stat">
            <div class="panel-body ">
                <div class="col-sm-3 col-md-4 text-center">
                    <div  style="font-size:16px;">今日商家收款 </div>
                    <div>
                        <span style="font-size:16px;"><?= $total ?></span>
                    </div>
                </div>
                <div class="col-sm-3 col-md-4 text-center">
                    <div  style="font-size:16px;"> 商家</div>
                    <div>
                        <span style="font-size:16px;"><?= $stores ?></span>
                    </div>
                </div>
                <div class="col-sm-3 col-md-4 text-center">
                    <div style="font-size:16px;">商务专员</div>
                    <div>
                        <span style="font-size:16px;"><?= $maker ?> </span>
                    </div>
                </div>
            </div>
        </div>


        <?php $this->endBlock(); ?>

        <?= Tabs::widget(
            [
                'id' => 'relation-tabs',
                'encodeLabels' => false,
                'items' => [
                    [
                        'label'   => '统计',
                        'content' => $this->blocks['yiike\company\model\TtycCompany'],
                        'active'  => true,
                    ],
                ]
            ]
        );
        ?>    </div>
</div>
